package com.jingdun.sport.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jingdun.sport.bean.model.ListTypesResponse;
import com.jingdun.sport.bean.model.NewSportConfig;
import com.jingdun.sport.common.util.PageParam;
import com.jingdun.sport.dao.SportConfigMapper;
import com.jingdun.sport.service.SportConfigService;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class SportConfigServiceImpl extends ServiceImpl<SportConfigMapper, NewSportConfig> implements SportConfigService {

    @Autowired
    private SportConfigMapper sportConfigMapper;


    @Override
    public List<ListTypesResponse> getListTypes(PageParam pageParam) {
        return sportConfigMapper.getListTypes(pageParam);
    }

    @Override
    public NewSportConfig getChildByCategory(int sportCategory) {
        return sportConfigMapper.getChildByCategory(sportCategory);
    }
}
